@extends('admin.layout')
@section('title', $title)
@section('content')
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                商品管理
                <small>分区商品展示</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 主页</a></li>
                <li><a href="#">商品</a></li>
                <li class="active">分区商品展示</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title">商品列表</h3>
                        </div><!-- /.box-header -->
                        <div class="box-body">
                            <table id="example2" class="table table-bordered table-hover">
                                <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>型号</th>
                                    <th>价格</th>
                                    <th></th>
                                </tr>
                                </thead>
                                <tbody>

                                @foreach($data as $k => $v)
                                    <tr>
                                        <td>{{ $v -> id}}</td>
                                        <td>{{ $v -> platename }}</td>
                                        <td></td>
                                        <td>
                                            @if($v -> pid != 0)
                                                <a href="#">查看</a>
                                            @endif
                                            <a href="#">编辑</a>
                                            <a href="#">删除</a>
                                        </td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                        </div><!-- /.box-body -->
                    </div><!-- /.box -->
                </div><!-- /.col -->
            </div><!-- /.row -->
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->
@endsection()


